
package Entities;


public abstract class AbstractMoveableEntity extends AbstractEntity implements MoveableEntity {

    protected double dx,dy;
    
    public AbstractMoveableEntity(double x, double y, double width, double height){
        super(x,y,width,height);
        this.dx = 0;
        this.dy = 0;
    }
    @Override
    public double getDX() {
        return dx;
    }
    @Override
    public double getDY() {
        return dy;
    }

    @Override
    public void setDX(double dX) {
        this.dx = dx;
    }

    @Override
    public void setDY(double dY) {
        this.dy = dy;
    }

    @Override
    public void draw() {
       
    }

    @Override
    public void update(int delta) {
         this.x +=delta *dx;
         this.y +=delta *dy;
    }

    @Override
    public void setLocation(double x, double y) {
        
    }

    @Override
    public void setX(double x) {
        
    }

    @Override
    public void setY(double y) {
         
    }

    @Override
    public void setWidth(double width) {
        
    }

    @Override
    public void setHeight(double height) {
        
    }


}
